package com.houseService.serviceCategories.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.houseService.common.core.page.TableDataInfo;
import com.houseService.common.utils.PageUtils;
import com.houseService.serviceCategories.domain.ServiceCategories;
import com.houseService.serviceCategories.vo.ServiceCategoriesVo;
import com.houseService.serviceCategories.mapper.ServiceCategoriesMapper;
import com.houseService.serviceCategories.service.IServiceCategoriesService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务分类管理Service业务层处理
 *
 * @author LiuChunlin
 * @date 2025-03-19
 */
@Service
public class ServiceCategoriesServiceImpl extends ServiceImpl<ServiceCategoriesMapper, ServiceCategories> implements IServiceCategoriesService {

    @Override
    public TableDataInfo<ServiceCategoriesVo> queryList(ServiceCategoriesVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<ServiceCategoriesVo> queryAll(ServiceCategoriesVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public ServiceCategoriesVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
